<template>
  <div>
    <Authc permissions="invoice:taxpayer:detail">
      <a class="" @click="handleClick('pz')">人工平账</a>
      <!-- <Tooltip placement="top" content="人工平账">
        <Icon class="normal-icon-style" type="ios-create" @click="handleDetail('detail')" />
      </Tooltip> -->
    </Authc>
  </div>
</template>
<script>
  import {
    Icon,
    Tooltip,
    Message,
    Modal
  } from "view-design";
  import {
    namespace
  } from "../../module";
  import Authc from "@/components/Authc";

  export default {
    props: {
      row: Object
    },
    model: {
      event: ["onEdit"]
    },
    components: {
      Icon,
      Tooltip,
      Message,
      Authc
    },
    data: function() {
      return {};
    },
    methods: {
      handleClick(type) {
        let id = this.$props.row.id;
        switch (type) {
          case 'pz':
            this.$bus.$emit('payReconciliationDifferenceActionType', {type: 'pz', id: id})
            break
        }
      }
    }
  };
</script>
<style lang="less">
  .normal-icon-style {
    font-size: 20px !important;
    color: #57a3f3 !important;
  }

  .error-icon-style {
    font-size: 20px !important;
    color: #ff0000 !important;
  }
</style>
